package com.example.express.base;

import android.graphics.Color;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.zackratos.ultimatebarx.library.UltimateBarX;
import com.zackratos.ultimatebarx.library.bean.BarConfig;

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(initLayout());
        UltimateBarX.with(this)
                .config(new BarConfig().fitWindow(true).color(Color.argb(255,36,144,255)).light(true))
                .applyStatusBar();
        initView();
        initData();
    }

    protected abstract int initLayout();

    protected abstract void initData();

    protected abstract void initView();
}
